package com.wxl.micro.service.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
@EnableDiscoveryClient// 可不写
@EnableFeignClients
public class OrderApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(OrderApplication.class, args);

        // nacos客户端 每10ms去 注册中心进行判断，  根据MD5
        String password = applicationContext.getEnvironment().getProperty("redis.password");
        String ip = applicationContext.getEnvironment().getProperty("redis.ips");
        System.out.println("配置中心数据password:"+password + " ips：" + ip);

    }
}
